var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countdown(yr,m,d,h,min,s,label){

	
	var today=new Date();
	var todayy=today.getYear()
	
	if (todayy < 1000)
		todayy+=1900
		
	var todaym=today.getMonth()
	var todayd=today.getDate()
	var todayh=today.getHours()
	var todaymin=today.getMinutes()
	var todaysec=today.getSeconds()
		
	var todaystring=todayy+" "+montharray[todaym]+" "+todayd+" "+todayh+":"+todaymin+":"+todaysec
	var futurestring=yr+" "+montharray[m-1]+" "+d+" "+h+":"+min+":"+s
	
	dd=Date.parse(futurestring)-Date.parse(todaystring)
	
	dday=Math.floor(dd/(60*60*1000*24)*1)
	dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
	dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
	dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
	dhour = dhour + (dday*24)
	var result;
	if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=0){
		document.getElementById(label).innerHTML='0:00:00'
	return
	}
	else
		result = dhour+":"
		if(dmin<10)
			result += "0"+dmin+":"
		else 
			result+= dmin+":"
		if(dsec<10)
			result += "0"+dsec
		else 
			result+= dsec
		document.getElementById(label).innerHTML=result
		setTimeout("countdown("+yr+","+m+","+d+","+h+","+min+","+s+","+label+")",1000)
	}

